<?php /* Smarty version 2.6.16, created on 2013-09-08 05:57:20
         compiled from ../templates/admin/joblead/jobleads.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'ucfirst', '../templates/admin/joblead/jobleads.tpl', 20, false),array('modifier', 'base64_decode', '../templates/admin/joblead/jobleads.tpl', 70, false),array('modifier', 'base64_encode', '../templates/admin/joblead/jobleads.tpl', 70, false),array('modifier', 'truncate', '../templates/admin/joblead/jobleads.tpl', 99, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['header_start'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
  echo '<script type="text/javascript" src="';  echo $this->_tpl_vars['siteroot'];  echo '/includes/js/admin/checkall.js" /></script>'; ?>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['header_end'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
  echo '
<script type="text/javascript">
$(function(){
$(".someClass").tipTip();
});

$(function(){
$(".someClass").tipTip({maxWidth: "auto", edgeOffset: 10});
});
</script>
'; ?>

<div class="contain">
      <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['left_menu'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
      <div class="right_contain">
         <div class="heading_box"><?php echo ((is_array($_tmp=$this->_tpl_vars['user_details']['first_name'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
 <?php echo ((is_array($_tmp=$this->_tpl_vars['user_details']['last_name'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
's Leads Listing <a href="javascript:;" class="someClass" title="<?php echo $this->_tpl_vars['moduelArray']['module_help_text']; ?>
" style="float:right;"><img src="<?php echo $this->_tpl_vars['siteroot']; ?>
/templates/admin/img/topic_icon6.png" /></a></div>
         <div class="whitebox">
         <!--Message Div Start-->
         <?php if ($this->_tpl_vars['msg']): ?>
         <div class="masg_div">
         	<?php echo $this->_tpl_vars['msg']; ?>

         </div>
         <?php endif; ?>
         <!--Message Div End-->
         <div>
          <!--Form Contain start-->
           <div class="table_viewbox">
            <!--<h2>Table Design</h2>-->
            <form name="searchFrm" id="searchFrm" method="post" action="<?php echo $this->_tpl_vars['siteroot']; ?>
/admin/home.php?q=jobleads&userid=<?php echo $_GET['userid']; ?>
">
            	<table width="100%" border="0" cellpadding="3" cellspacing="5">
                	<tr>
                    	
                        <td align="right">
                          <select class="input41_selet" name="jobtype" id="jobtype" style="width:150px;">
                        <option value="0">Select Job Type</option>
                        <?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['getallTradeJobType']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>
                        <option value="<?php echo $this->_tpl_vars['getallTradeJobType'][$this->_sections['i']['index']]['id']; ?>
" <?php if ($_GET['jobtype'] == $this->_tpl_vars['getallTradeJobType'][$this->_sections['i']['index']]['id'] || $_POST['jobtype'] == $this->_tpl_vars['getallTradeJobType'][$this->_sections['i']['index']]['id']): ?> selected="selected" <?php endif; ?>><?php echo $this->_tpl_vars['getallTradeJobType'][$this->_sections['i']['index']]['trade_category']; ?>
</option>				                        
                        <?php endfor; endif; ?>
                        </select>  &nbsp;
                          <select class="input41_selet" name="budget" id="budget" style="width:190px;">
                        <option value="0">Select Approximate Budget</option>
                        <?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['getallBudget']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>
                        <option value="<?php echo $this->_tpl_vars['getallBudget'][$this->_sections['i']['index']]['budget_id']; ?>
" <?php if ($_GET['budget'] == $this->_tpl_vars['getallBudget'][$this->_sections['i']['index']]['budget_id'] || $_POST['budget'] == $this->_tpl_vars['getallBudget'][$this->_sections['i']['index']]['budget_id']): ?> selected="selected" <?php endif; ?>>Under $<?php echo $this->_tpl_vars['getallBudget'][$this->_sections['i']['index']]['budget_name']; ?>
</option>                     
                        <?php endfor; endif; ?>
                        </select>  &nbsp;         
                        <select class="input41_selet" name="project_status" id="project_status" style="width:150px;">
                        <option value="0">Select Status</option>
                        <option value="Open" <?php if ($_GET['project_status'] == 'Open' || $_POST['project_status'] == 'Open'): ?> selected="selected" <?php endif; ?>>Open</option>
                        <option value="Accept" <?php if ($_GET['project_status'] == 'Accept' || $_POST['project_status'] == 'Accept'): ?> selected="selected" <?php endif; ?>>Accepted</option>
                        <option value="Decline" <?php if ($_GET['project_status'] == 'Decline' || $_POST['project_status'] == 'Decline'): ?> selected="selected" <?php endif; ?>>Declined</option>
                        <option value="Closed" <?php if ($_GET['project_status'] == 'Closed' || $_POST['project_status'] == 'Closed'): ?> selected="selected" <?php endif; ?>>Closed</option>
                        <option value="Completed" <?php if ($_GET['project_status'] == 'Completed' || $_POST['project_status'] == 'Completed'): ?> selected="selected" <?php endif; ?>>Completed</option>
                        </select>  &nbsp;         
				        <input type="submit" name="add" id="add" value="Search" class="admin_btn" />&nbsp;<input type="button" name="add" id="add" value="Clear" class="admin_btn" onclick="javascript: window.location='<?php echo $this->_tpl_vars['siteroot']; ?>
/admin/home.php?q=jobleads&userid=<?php echo $_GET['userid']; ?>
';" />&nbsp;<input type="button" name="add" id="add" value="Back" class="admin_btn" onclick="javascript: window.location='<?php echo $this->_tpl_vars['siteroot']; ?>
/admin/home.php?q=tradesmanuserlist';" /></td>
                    </tr>
                </table>
            </form>
            <form name="frm" id="frm" action="" method="post" >
            <input type="hidden" name="hidden_pageno" id="hidden_pageno" value="<?php echo $this->_tpl_vars['page']; ?>
" />
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_viewbox">
              <tr>
                <th width="3%" align="center">#</th>
                <th width="5%">Job ID</th>
                <!--<th width="15%">Homeowner Name</th>-->
                <th width="10%">
                	<!--<div class="lF"><a <?php if (((is_array($_tmp=$_GET['col1'])) ? $this->_run_mod_handler('base64_decode', true, $_tmp) : base64_decode($_tmp)) == '0'): ?> href="<?php echo $this->_tpl_vars['siteroot']; ?>
/admin/home.php?q=jobleads&userid=<?php echo $_GET['userid']; ?>
&col1=<?php echo ((is_array($_tmp=1)) ? $this->_run_mod_handler('base64_encode', true, $_tmp) : smarty_modifier_base64_encode($_tmp)); ?>
&page=<?php echo $this->_tpl_vars['page']; ?>
" <?php else: ?>href="<?php echo $this->_tpl_vars['siteroot']; ?>
/admin/home.php?q=jobleads&userid=<?php echo $_GET['userid']; ?>
&col1=<?php echo ((is_array($_tmp=0)) ? $this->_run_mod_handler('base64_encode', true, $_tmp) : smarty_modifier_base64_encode($_tmp)); ?>
&page=<?php echo $this->_tpl_vars['page']; ?>
" <?php endif; ?>>Trade Category</a></div>
                	<div class="lF" style="margin-left:10px;  height:15px;">
                    	<div style="width:10px; height:6px;"><a href="<?php echo $this->_tpl_vars['siteroot']; ?>
/admin/home.php?q=jobleads&userid=<?php echo $_GET['userid']; ?>
&col1=<?php echo ((is_array($_tmp=0)) ? $this->_run_mod_handler('base64_encode', true, $_tmp) : smarty_modifier_base64_encode($_tmp)); ?>
&page=<?php echo $this->_tpl_vars['page']; ?>
" ><img <?php if (((is_array($_tmp=$_GET['col1'])) ? $this->_run_mod_handler('base64_decode', true, $_tmp) : base64_decode($_tmp)) == '1' || $_GET['col2'] != '' || $_GET['col3'] != ''): ?> src="<?php echo $this->_tpl_vars['siteroot']; ?>
/templates/admin/img/admin_toparrow_white.png" <?php else: ?> src="<?php echo $this->_tpl_vars['siteroot']; ?>
/templates/admin/img/admin_toparrow_black.png" <?php endif; ?> title="ASC"  width="10" height="6" align="top"/></a> <br /></div>
                        <div style="width:10px; height:6px; margin-top:3px; *margin-top:4px;"><a href="<?php echo $this->_tpl_vars['siteroot']; ?>
/admin/home.php?q=jobleads&userid=<?php echo $_GET['userid']; ?>
&col1=<?php echo ((is_array($_tmp=1)) ? $this->_run_mod_handler('base64_encode', true, $_tmp) : smarty_modifier_base64_encode($_tmp)); ?>
&page=<?php echo $this->_tpl_vars['page']; ?>
"><img <?php if (((is_array($_tmp=$_GET['col1'])) ? $this->_run_mod_handler('base64_decode', true, $_tmp) : base64_decode($_tmp)) == '0' || ((is_array($_tmp=$_GET['col1'])) ? $this->_run_mod_handler('base64_decode', true, $_tmp) : base64_decode($_tmp)) == ''): ?> src="<?php echo $this->_tpl_vars['siteroot']; ?>
/templates/admin/img/admin_downarrow_white.png" <?php else: ?> src="<?php echo $this->_tpl_vars['siteroot']; ?>
/templates/admin/img/admin_downarrow_black.png" <?php endif; ?> title="DESC"  width="10" height="6" align="bottom" /></a></div>
                    </div>
                    <div class="clear"></div>	-->
                    Trade Category
                </th>
                <th width="10%">
	            	<!--<div class="lF"><a <?php if (((is_array($_tmp=$_GET['col2'])) ? $this->_run_mod_handler('base64_decode', true, $_tmp) : base64_decode($_tmp)) == '0'): ?> href="<?php echo $this->_tpl_vars['siteroot']; ?>
/admin/home.php?q=jobleads&userid=<?php echo $_GET['userid']; ?>
&col2=<?php echo ((is_array($_tmp=1)) ? $this->_run_mod_handler('base64_encode', true, $_tmp) : smarty_modifier_base64_encode($_tmp)); ?>
&page=<?php echo $this->_tpl_vars['page']; ?>
" <?php else: ?>href="<?php echo $this->_tpl_vars['siteroot']; ?>
/admin/home.php?q=jobleads&userid=<?php echo $_GET['userid']; ?>
&col2=<?php echo ((is_array($_tmp=0)) ? $this->_run_mod_handler('base64_encode', true, $_tmp) : smarty_modifier_base64_encode($_tmp)); ?>
&page=<?php echo $this->_tpl_vars['page']; ?>
" <?php endif; ?>>Job Type</a></div>
                	<div class="lF" style="margin-left:10px;  height:15px;">
                    	<div style="width:10px; height:6px;"><a href="<?php echo $this->_tpl_vars['siteroot']; ?>
/admin/home.php?q=jobleads&userid=<?php echo $_GET['userid']; ?>
&col2=<?php echo ((is_array($_tmp=0)) ? $this->_run_mod_handler('base64_encode', true, $_tmp) : smarty_modifier_base64_encode($_tmp)); ?>
&page=<?php echo $this->_tpl_vars['page']; ?>
" ><img <?php if (((is_array($_tmp=$_GET['col2'])) ? $this->_run_mod_handler('base64_decode', true, $_tmp) : base64_decode($_tmp)) == '1' || ((is_array($_tmp=$_GET['col2'])) ? $this->_run_mod_handler('base64_decode', true, $_tmp) : base64_decode($_tmp)) == ''): ?> src="<?php echo $this->_tpl_vars['siteroot']; ?>
/templates/admin/img/admin_toparrow_white.png" <?php else: ?> src="<?php echo $this->_tpl_vars['siteroot']; ?>
/templates/admin/img/admin_toparrow_black.png" <?php endif; ?> title="ASC"  width="10" height="6" align="top"/></a> <br /></div>
                        <div style="width:10px; height:6px; margin-top:3px; *margin-top:4px;"><a href="<?php echo $this->_tpl_vars['siteroot']; ?>
/admin/home.php?q=jobleads&userid=<?php echo $_GET['userid']; ?>
&col2=<?php echo ((is_array($_tmp=1)) ? $this->_run_mod_handler('base64_encode', true, $_tmp) : smarty_modifier_base64_encode($_tmp)); ?>
&page=<?php echo $this->_tpl_vars['page']; ?>
"><img <?php if (((is_array($_tmp=$_GET['col2'])) ? $this->_run_mod_handler('base64_decode', true, $_tmp) : base64_decode($_tmp)) == '0' || ((is_array($_tmp=$_GET['col2'])) ? $this->_run_mod_handler('base64_decode', true, $_tmp) : base64_decode($_tmp)) == ''): ?> src="<?php echo $this->_tpl_vars['siteroot']; ?>
/templates/admin/img/admin_downarrow_white.png" <?php else: ?> src="<?php echo $this->_tpl_vars['siteroot']; ?>
/templates/admin/img/admin_downarrow_black.png" <?php endif; ?> title="DESC"  width="10" height="6" align="bottom" /></a></div>
                    </div>
                    <div class="clear"></div>    -->   
                    Job Type          
               </th>
                <th width="15%">Job Description</th>
                <th width="10%">Budget</th>
                <th width="10%">Status</th>
                <th width="10%">Action</th>
              </tr>
              <?php if ($this->_tpl_vars['leadsArray']): ?>
              <?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['leadsArray']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>
              <tr class="inactiverow" id="tr_<?php echo $this->_tpl_vars['leadsArray'][$this->_sections['i']['index']]['postjob_id']; ?>
">
                <td align="center"><?php echo $this->_tpl_vars['newid']; ?>
</td>
                <td>#PR<?php echo $this->_tpl_vars['leadsArray'][$this->_sections['i']['index']]['postjob_id']; ?>
</td>
                <td><?php echo ((is_array($_tmp=$this->_tpl_vars['leadsArray'][$this->_sections['i']['index']]['tradename'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
</td>
                <td><?php echo ((is_array($_tmp=$this->_tpl_vars['leadsArray'][$this->_sections['i']['index']]['jobtypename'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
</td>
                <td><?php echo ((is_array($_tmp=$this->_tpl_vars['leadsArray'][$this->_sections['i']['index']]['job_desc'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 25, "..") : smarty_modifier_truncate($_tmp, 25, "..")); ?>
</td>
                <td>$<?php echo $this->_tpl_vars['leadsArray'][$this->_sections['i']['index']]['budgetname']; ?>
</td>
                <td><?php if ($this->_tpl_vars['leadsArray'][$this->_sections['i']['index']]['new_status'] == 'Open'): ?>
                		Open
                    <?php endif; ?>   
                    <?php if ($this->_tpl_vars['leadsArray'][$this->_sections['i']['index']]['new_status'] == 'Accept'): ?>
                		Accepted
                    <?php endif; ?>   
                    <?php if ($this->_tpl_vars['leadsArray'][$this->_sections['i']['index']]['new_status'] == 'Decline'): ?>
                		Declined
                    <?php endif; ?>   
                    <?php if ($this->_tpl_vars['leadsArray'][$this->_sections['i']['index']]['new_status'] == 'Completed'): ?>
                		Completed
                    <?php endif; ?>   
                </td>
                <td>
                    <span><a href="<?php echo $this->_tpl_vars['siteroot']; ?>
/admin/home.php?q=jobleaddetail&userid=<?php echo $_GET['userid']; ?>
&id=<?php echo ((is_array($_tmp=$this->_tpl_vars['leadsArray'][$this->_sections['i']['index']]['id'])) ? $this->_run_mod_handler('base64_encode', true, $_tmp) : smarty_modifier_base64_encode($_tmp)); ?>
&page=<?php echo $this->_tpl_vars['page']; ?>
"><img src="<?php echo $this->_tpl_vars['siteroot']; ?>
/templates/admin/img/icon-search.png" title="Post Job Detail" /></a></span>
                </td>
              </tr>
              <!-- <?php echo $this->_tpl_vars['newid']++; ?>
 -->
              <?php endfor; endif; ?>
               <?php else: ?>
              <tr>
               <td colspan="8" align="center" class="error">Record Not Found</td>
              </tr>
              <?php endif; ?>
               <tr>
                <td colspan="8">
                 <?php if ($this->_tpl_vars['leadsArray']): ?>
                <div class="select_box">
                  
                  </div>
                  <?php endif; ?>
                  <div class="pagination">
                  <?php if ($this->_tpl_vars['pagination']):  echo $this->_tpl_vars['pagination'];  endif; ?>
                  </div>
                   </td>
                  
              </tr>
            </table>
</form>
         </div>
            <!--Form Contain end--> 
         </div>
         </div>
        </div>
      <!--right_contain end-->
      <div class="clear"></div>
    </div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['footer'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>